<template>
  <view>
		<view v-for="(item, index) in dataList" :key="index">
			<slot :item="item"></slot>
		</view>
		<uni-load-more :status="status" :content-text="contentText" />
	</view>
</template>

<script setup>
	import { onLoad } from '@dcloudio/uni-app'
import { reactive, ref } from 'vue';
	const props = defineProps({
		requestMethod: { type: Function, default: () => { }, require: true }
	})
	
	onLoad(() => {
		props.requestMethod()
	})
	
	const dataList = ref([])
	const loadMore = reactive({
		status: 'more', // more, loading, noMore
		contentText: {
			contentdown: '上拉加载更多',
			contentrefresh: '加载中...',
			contentnomore: '没有更多了'
		}
	})
	
	
</script>

<style lang="scss" scoped></style>
